package com.lirh.mysql.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lirh.mysql.entity.Comment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CommentDao extends BaseMapper<Comment> {
    @Insert("insert into comment (id,name,ip)values (#{comment.id},#{comment.name},#{comment.ip})")
    public void insertOne(@Param("comment")Comment comment);

}
